home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
MACVOGL-
/
GETGP.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-19
|
478b
|
33 lines
#include "vogl.h"
/*
* getgp
*
* return the current (x, y, z) graphics position
*/
void
getgp(x, y, z)
Coord *x, *y, *z;
{
*x = vdevice.cpW[V_X];
*y = vdevice.cpW[V_Y];
*z = vdevice.cpW[V_Z];
}
/*
* getgpos
*
* Get the current graphics position after transformation by
* the current matrix.
*/
void
getgpos(x, y, z, w)
Coord *x, *y, *z, *w;
{
*x = vdevice.cpWtrans[V_X];
*y = vdevice.cpWtrans[V_Y];
*z = vdevice.cpWtrans[V_Z];
*w = vdevice.cpWtrans[V_W];
}